<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.TSerialWidget类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_t_serial_widget.html">TSerialWidget</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classawtk_1_1_t_serial_widget-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.TSerialWidget类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
类 awtk.TSerialWidget 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classawtk_1_1_t_serial_widget.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:af74468465ed102a70f48116c16e25948"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_serial_widget.html#af74468465ed102a70f48116c16e25948">TSerialWidget</a> (long nativeObj)</td></tr>
<tr class="separator:af74468465ed102a70f48116c16e25948"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f3d80ab6a681da72c9c4813f27a2f32"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_serial_widget.html#a9f3d80ab6a681da72c9c4813f27a2f32">setBaudrate</a> (int baudrate)</td></tr>
<tr class="separator:a9f3d80ab6a681da72c9c4813f27a2f32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea4d3365fe302936b2d422b1df3e3978"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_serial_widget.html#aea4d3365fe302936b2d422b1df3e3978">setDevice</a> (String device)</td></tr>
<tr class="separator:aea4d3365fe302936b2d422b1df3e3978"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a682062d21d9d0ef6f1f854bd09a9b81c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_serial_widget.html#a682062d21d9d0ef6f1f854bd09a9b81c">setBytesize</a> (int bytesize)</td></tr>
<tr class="separator:a682062d21d9d0ef6f1f854bd09a9b81c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff0a27b54b5ea272e690b7c9f3d0eb36"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_serial_widget.html#aff0a27b54b5ea272e690b7c9f3d0eb36">setParity</a> (int parity)</td></tr>
<tr class="separator:aff0a27b54b5ea272e690b7c9f3d0eb36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb061f4eab21b6e2c3cd9aef47184fee"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_serial_widget.html#adb061f4eab21b6e2c3cd9aef47184fee">setStopbits</a> (int stopbits)</td></tr>
<tr class="separator:adb061f4eab21b6e2c3cd9aef47184fee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9ba5b2b02922aa49773061801077a54"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_serial_widget.html#ae9ba5b2b02922aa49773061801077a54">setFlowcontrol</a> (int flowcontrol)</td></tr>
<tr class="separator:ae9ba5b2b02922aa49773061801077a54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac24bb413e490c1f2848f15e83f7e846e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_serial_widget.html#ac24bb413e490c1f2848f15e83f7e846e">setCheckInterval</a> (int check_interval)</td></tr>
<tr class="separator:ac24bb413e490c1f2848f15e83f7e846e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae912dd6809c747ff92632324ac73edd0"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_serial_widget.html#ae912dd6809c747ff92632324ac73edd0">getDevice</a> ()</td></tr>
<tr class="separator:ae912dd6809c747ff92632324ac73edd0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64d962c3efa71fb445a02e3aadbd3375"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_serial_widget.html#a64d962c3efa71fb445a02e3aadbd3375">getBaudrate</a> ()</td></tr>
<tr class="separator:a64d962c3efa71fb445a02e3aadbd3375"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a929f9c87e419f7b4f84bcb8634dbc3e5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_serial_widget.html#a929f9c87e419f7b4f84bcb8634dbc3e5">getBytesize</a> ()</td></tr>
<tr class="separator:a929f9c87e419f7b4f84bcb8634dbc3e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a189cfb7509f7039a2bbb114d6757f13e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_serial_widget.html#a189cfb7509f7039a2bbb114d6757f13e">getParity</a> ()</td></tr>
<tr class="separator:a189cfb7509f7039a2bbb114d6757f13e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab626124387fee1715d66038eb9cb2be5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_serial_widget.html#ab626124387fee1715d66038eb9cb2be5">getStopbits</a> ()</td></tr>
<tr class="separator:ab626124387fee1715d66038eb9cb2be5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a626972216009356709093f8d10ae9cee"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_serial_widget.html#a626972216009356709093f8d10ae9cee">getFlowcontrol</a> ()</td></tr>
<tr class="separator:a626972216009356709093f8d10ae9cee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81ca3cd79c4fcddc96fab01a5fc9f54d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_serial_widget.html#a81ca3cd79c4fcddc96fab01a5fc9f54d">getCheckInterval</a> ()</td></tr>
<tr class="separator:a81ca3cd79c4fcddc96fab01a5fc9f54d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a4b980d47405994fc36e4264f204fa484"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_serial_widget.html">TSerialWidget</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_serial_widget.html#a4b980d47405994fc36e4264f204fa484">cast</a> (long nativeObj)</td></tr>
<tr class="separator:a4b980d47405994fc36e4264f204fa484"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a102288c2b5e9a0d66897c7a903fc2599"><td class="memItemLeft" align="right" valign="top">static TWidget&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_serial_widget.html#a102288c2b5e9a0d66897c7a903fc2599">create</a> (TWidget parent, int x, int y, int w, int h)</td></tr>
<tr class="separator:a102288c2b5e9a0d66897c7a903fc2599"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70c43c0e1cd58a70f15b56dff07ce9cb"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_t_serial_widget.html">TSerialWidget</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_t_serial_widget.html#a70c43c0e1cd58a70f15b56dff07ce9cb">cast</a> (TWidget widget)</td></tr>
<tr class="separator:a70c43c0e1cd58a70f15b56dff07ce9cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>用于串口通信的控件 在xml中使用"serial"标签创建控件。如：</p>
<div class="fragment"><div class="line">*<span class="comment">&lt;!-- ui --&gt;</span></div>
<div class="line">*&lt;<span class="keywordtype">serial</span> <span class="keyword">device</span>=<span class="stringliteral">&quot;COM1&quot;</span> <span class="keyword">baudrate</span>=<span class="stringliteral">&quot;115200&quot;</span>/&gt;</div>
</div><!-- fragment --><p>可用通过style来设置控件的显示风格，如字体的大小和颜色等等。如： </p><blockquote class="doxtable">
<p>本控件默认不可见，无需指定style。 </p>
</blockquote>
<div class="fragment"><div class="line">*<span class="comment">&lt;!-- style --&gt;</span></div>
<div class="line">*&lt;<span class="keywordtype">serial</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">style</span> <span class="keyword">name</span>=<span class="stringliteral">&quot;default&quot;</span> <span class="keyword">font_size</span>=<span class="stringliteral">&quot;32&quot;</span>&gt;</div>
<div class="line">*&lt;<span class="keywordtype">normal</span> <span class="keyword">text_color</span>=<span class="stringliteral">&quot;black&quot;</span> /&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">style</span>&gt;</div>
<div class="line">*&lt;/<span class="keywordtype">serial</span>&gt;</div>
</div><!-- fragment --> </div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="af74468465ed102a70f48116c16e25948"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af74468465ed102a70f48116c16e25948">&#9670;&nbsp;</a></span>TSerialWidget()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">awtk.TSerialWidget.TSerialWidget </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>通过nativeObj构造Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a4b980d47405994fc36e4264f204fa484"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b980d47405994fc36e4264f204fa484">&#9670;&nbsp;</a></span>cast() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_serial_widget.html">TSerialWidget</a> awtk.TSerialWidget.cast </td>
          <td>(</td>
          <td class="paramtype">long&#160;</td>
          <td class="paramname"><em>nativeObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>把nativeObj转换层Java对象。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">nativeObj</td><td>原生对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>对应的Java对象。 </dd></dl>

</div>
</div>
<a id="a70c43c0e1cd58a70f15b56dff07ce9cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70c43c0e1cd58a70f15b56dff07ce9cb">&#9670;&nbsp;</a></span>cast() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_t_serial_widget.html">TSerialWidget</a> awtk.TSerialWidget.cast </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>widget</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为serial_widget对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">widget</td><td>serial_widget对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>serial_widget对象。 </dd></dl>

</div>
</div>
<a id="a102288c2b5e9a0d66897c7a903fc2599"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a102288c2b5e9a0d66897c7a903fc2599">&#9670;&nbsp;</a></span>create()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static TWidget awtk.TSerialWidget.create </td>
          <td>(</td>
          <td class="paramtype">TWidget&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>创建serial_widget对象</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parent</td><td>父控件 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标 </td></tr>
    <tr><td class="paramname">w</td><td>宽度 </td></tr>
    <tr><td class="paramname">h</td><td>高度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>serial_widget对象。 </dd></dl>

</div>
</div>
<a id="a64d962c3efa71fb445a02e3aadbd3375"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64d962c3efa71fb445a02e3aadbd3375">&#9670;&nbsp;</a></span>getBaudrate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TSerialWidget.getBaudrate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>波特率。 </p>

</div>
</div>
<a id="a929f9c87e419f7b4f84bcb8634dbc3e5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a929f9c87e419f7b4f84bcb8634dbc3e5">&#9670;&nbsp;</a></span>getBytesize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TSerialWidget.getBytesize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>字节位数。 </p>

</div>
</div>
<a id="a81ca3cd79c4fcddc96fab01a5fc9f54d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81ca3cd79c4fcddc96fab01a5fc9f54d">&#9670;&nbsp;</a></span>getCheckInterval()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TSerialWidget.getCheckInterval </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>轮询时间（单位：ms）。 </p><blockquote class="doxtable">
<p>仅在不支持用select等待串口数据的嵌入式设备上有效。 </p>
</blockquote>

</div>
</div>
<a id="ae912dd6809c747ff92632324ac73edd0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae912dd6809c747ff92632324ac73edd0">&#9670;&nbsp;</a></span>getDevice()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.TSerialWidget.getDevice </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设备(文件)名。 </p>

</div>
</div>
<a id="a626972216009356709093f8d10ae9cee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a626972216009356709093f8d10ae9cee">&#9670;&nbsp;</a></span>getFlowcontrol()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TSerialWidget.getFlowcontrol </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>流控。 </p>

</div>
</div>
<a id="a189cfb7509f7039a2bbb114d6757f13e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a189cfb7509f7039a2bbb114d6757f13e">&#9670;&nbsp;</a></span>getParity()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TSerialWidget.getParity </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>奇偶校验。 </p>

</div>
</div>
<a id="ab626124387fee1715d66038eb9cb2be5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab626124387fee1715d66038eb9cb2be5">&#9670;&nbsp;</a></span>getStopbits()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.TSerialWidget.getStopbits </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>停止位。 </p>

</div>
</div>
<a id="a9f3d80ab6a681da72c9c4813f27a2f32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9f3d80ab6a681da72c9c4813f27a2f32">&#9670;&nbsp;</a></span>setBaudrate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSerialWidget.setBaudrate </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>baudrate</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置 波特率。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">baudrate</td><td>波特率。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a682062d21d9d0ef6f1f854bd09a9b81c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a682062d21d9d0ef6f1f854bd09a9b81c">&#9670;&nbsp;</a></span>setBytesize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSerialWidget.setBytesize </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>bytesize</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置 字节位数。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">bytesize</td><td>字节位数。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ac24bb413e490c1f2848f15e83f7e846e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac24bb413e490c1f2848f15e83f7e846e">&#9670;&nbsp;</a></span>setCheckInterval()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSerialWidget.setCheckInterval </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>check_interval</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置 轮询时间。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">check_interval</td><td>轮询时间（单位：ms）。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aea4d3365fe302936b2d422b1df3e3978"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea4d3365fe302936b2d422b1df3e3978">&#9670;&nbsp;</a></span>setDevice()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSerialWidget.setDevice </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>device</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置 设备。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">device</td><td>设备。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ae9ba5b2b02922aa49773061801077a54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae9ba5b2b02922aa49773061801077a54">&#9670;&nbsp;</a></span>setFlowcontrol()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSerialWidget.setFlowcontrol </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>flowcontrol</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置 流控。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">flowcontrol</td><td>流控。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aff0a27b54b5ea272e690b7c9f3d0eb36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aff0a27b54b5ea272e690b7c9f3d0eb36">&#9670;&nbsp;</a></span>setParity()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSerialWidget.setParity </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>parity</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置 奇偶校验。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">parity</td><td>奇偶校验。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="adb061f4eab21b6e2c3cd9aef47184fee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb061f4eab21b6e2c3cd9aef47184fee">&#9670;&nbsp;</a></span>setStopbits()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_t_ret.html">TRet</a> awtk.TSerialWidget.setStopbits </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>stopbits</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置 停止位。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">stopbits</td><td>停止位。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/TSerialWidget.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
